package entity

import "time"

type Share struct {
	Id                     int       `json:"id"`
	Identity               string    `json:"identity"`
	UserIdentity           string    `json:"userIdentity"`
	UserRepositoryIdentity string    `json:"userRepositoryIdentity"`
	Code                   string    `json:"code"`
	ExpiredTime            int       `json:"expiredTime"`
	Status                 int       `json:"status"`
	CreatedAt              time.Time `json:"createdAt" time_format:"2006-01-02 15:04:05"`
	UpdatedAt              time.Time `json:"updatedAt" time_format:"2006-01-02 15:04:05"`
	DeletedAt              time.Time `json:"-"`
}

func (*Share) TableName() string {
	return "share_basic"
}
